package com.yc.cinema.bean;

import lombok.Data;

@Data
public class YcUser extends User{
    private int age;
    private String name;

    public YcUser(){
        System.out.println(1111111);
    }

    public YcUser(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public void InitMethod(){
        System.out.println("init method");
    }

    public static YcUser getYcUser(){
        System.out.println("静态工厂初始化。。。");
        return new YcUser();
    }


}
